package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface StrategyCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyComment record);

    StrategyComment selectByPrimaryKey(Long id);

    List<StrategyComment> selectAll();

    int updateByPrimaryKey(StrategyComment record);

    void setTag(@Param("commentId") Long commentId, @Param("tagId") Long tagId);

    List<StrategyComment> queryForList(StrategyCommentQueryObject qo);

    void addCommentNum(Long commentId);

    List<StrategyComment> selectByUserId(Long userId);

    void updateLikes(@Param("commentId") Long commentId, @Param("likes") int likes);
}